/**
 * ProjectName:  mall-service
 * FileName:  QUser.java
 * PackageName:  com.cyou.mall.entity
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.dao;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.blx.entity.QUser;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  QUserDao. <br/>
 * Description:  QUserDao <br/>
 * @author wangwl
 * 2013-3-4 下午8:50:37 <br/>
 * @version 1.0
 */
@Component
public class QUserDao extends BaseDao<QUser> {

	/**
	 * 保存QUser实体 <br/>
	 * @param qUser
	 * @author wangwl
	 * 2013-3-4 下午9:08:04
	 */
	public void saveQUser(QUser qUser) {
		this.save("saveQUser", qUser);
	}
	/**
	 * 更新QUser实体<br/>
	 * @param qUser
	 * @author wangwl
	 * 2013-3-4 下午8:59:52
	 */
	public void updateQUser(QUser qUser) {
		this.update("updateQUser", qUser);
	}
	/**
	 * 删除QUser实体 <br/>
	 * @param qUserId
	 * @author wangwl
	 * 2013-3-4 下午9:00:14
	 */
	public void deleteQUserById(Integer qUserId) {
		this.delete("deleteQUserById", qUserId);
	}
	/**
	 * 根据id获取QUser实体 <br/>
	 * @param qUserId
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:00:32
	 */
	public QUser getQUserById(Integer qUserId) {
		return this.get("getById", qUserId);
	}
	/**
	 * 分页查询QUser <br/>
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:01:23
	 */
	public Pagination<QUser> findPageQUserAll(int pageNumber, int pageSize) {
		return this.findPage("findPageQUserAll", pageNumber, pageSize);
	}
	public QUser getQUserEntity(Map<String, Object> map) {
		return (QUser) this.getSqlSession().selectOne("getQUserEntity",map);
	}
}



